<?php

// Default eNews layout
// text on the left, image floated right with caption below

// REQUIRED
// -------------------------
// @param  string  $title The title of the article
// @param  html    $body The body of the article
// @param  url     $image_url The article image
// @param  string  $image_alt Alternate text for the image
// 
// OPTIONAL
// -------------------------
// @param  string  $drophead Any content to act as a drop heading to the title
// @param  string  $byline Generally used for an author, but also can be used as a secondary drop heading
// @param  url     $image_link URL to visit if the image is clicked
// @param  string  $image_caption Description of what the image is
//

?>

<table cellpadding="0" cellspacing="0" border="0">
  <tr valign="top">
    <td>
      <h1><?= $title ?></h1>
      <?php if(isset($drophead)): ?>
      <p class="drophead"><?= $drophead ?></p>
      <?php endif ?>
      <?php if(isset($byline)): ?>
      <p class="byline"><?= $byline ?></p>
      <?php endif ?>
      <?= $body ?>
    </td>
    <td width="10">&nbsp;</td>
    <td>
      <?php if(isset($image_link)): ?><a href="<?= $image_link ?>?<?= gt('chip', TRUE) ?>" target="_blank"><?php endif ?>
        <img src="<?= $image_url ?>" alt="<?= $image_alt ?>" border="0">
      <?php if(isset($image_link)): ?></a><?php endif ?>
      <?php if(isset($image_caption)): ?>
      <p class="caption"><?= $image_caption ?></p>
      <?php endif ?>
    </td>
  </tr>
</table>
